<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class Pike_View_Helper_FlashMessages</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Class Pike_View_Helper_FlashMessages</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
													<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
						|											<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">FlashMessages view helper</p>
<p class="description"><p>(Based on Zend Framework 1.11+)  This helper renders the flash messages.</p><p>Add to application.ini:  resources.view.helperPath.Pike_View_Helper = APPLICATION_PATH &quot;/../library/Pike/View/Helper&quot;  autoloaderNamespaces[] = &quot;Pike&quot;</p><p>Add to layout.phtml:  &lt;?= $this-&gt;flashMessages() ?&gt;</p></p>
	<ul class="tags">
				<li><span class="field">copyright:</span> Copyright (C) 2011 by Pieter Vogelaar (platinadesigns.nl) and Kees Schepers (keesschepers.nl)</li>
				<li><span class="field">license:</span> MIT</li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_View---Helper---FlashMessages.php.html">/View/Helper/FlashMessages.php</a> (line <span class="field">45</span>)
		</p>
		
				
		<pre>Zend_View_Helper_Abstract
   |
   --Pike_View_Helper_FlashMessages</pre>
	
			</div>
</div>



	<a name="sec-var-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Variable Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
						<span class="disabled">Vars</span> (<a href="#sec-vars">details</a>)
							| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
								</div>
		<div class="info-box-body">
			<div class="var-summary">
																																<div class="var-title">
					<span class="var-type">Zend_Controller_Action_Helper_FlashMessenger</span>
					<a href="#$_flashMessenger" title="details" class="var-name">$_flashMessenger</a>
				</div>
																<div class="var-title">
					<span class="var-type">Zend_Translate</span>
					<a href="#$_translator" title="details" class="var-name">$_translator</a>
				</div>
											</div>
		</div>
	</div>

	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
																		<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
				 
				|
						<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																				
												<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#flashMessages" title="details" class="method-name">flashMessages</a>
											([<span class="var-type"></span>&nbsp;<span class="var-name">$containerAttributes</span> = <span class="var-default">array()</span>], [<span class="var-type">Zend_Translate</span>&nbsp;<span class="var-name">$translator</span> = <span class="var-default">null</span>], [<span class="var-type">array</span>&nbsp;<span class="var-name">$namespaces</span> = <span class="var-default">array('default', 'warning', 'error')</span>])
									</div>
																<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#_translate" title="details" class="method-name">_translate</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$string</span>)
									</div>
								</div>
		</div>
	</div>		

	<a name="sec-vars"></a>
	<div class="info-box">
		<div class="info-box-title">Variables</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
										<a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>)
						
			
										| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
			<a name="var$_flashMessenger" id="$_flashMessenger"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">Zend_Controller_Action_Helper_FlashMessenger</span>
			<span class="var-name">$_flashMessenger</span>
						(line <span class="line-number">52</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">FlashMessenger</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$_translator" id="$_translator"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">Zend_Translate</span>
			<span class="var-name">$_translator</span>
						(line <span class="line-number">59</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Translator</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
						
		</div>
	</div>
	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
															<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
																	<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>

<a name="methodflashMessages" id="flashMessages"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">flashMessages</span> (line <span class="line-number">91</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Formats flash messages for the specified namespaces</p>
<p class="description"><p>Common namespaces are &quot;default&quot; (success), &quot;warning&quot; and &quot;error&quot;.</p><p>Input:      $this-&gt;_flashMessenger-&gt;addMessage('Success message #1');      $this-&gt;_flashMessenger-&gt;setNamespace('warning')-&gt;addMessage('Warning message #1');      $this-&gt;_flashMessenger-&gt;setNamespace('error')-&gt;addMessage('Error message #1');      $this-&gt;_flashMessenger-&gt;setNamespace('default')-&gt;addMessage('Success message #2');      $this-&gt;_flashMessenger-&gt;addMessage('Success message #3');</p><p>Output:     &lt;div id=&quot;message-container&quot;&gt;         &lt;div class=&quot;namespace namespace-default&quot;&gt;             &lt;ul class=&quot;list&quot;&gt;                 &lt;li class=&quot;message default&quot;&gt;Success message #1&lt;/li&gt;                 &lt;li class=&quot;message default&quot;&gt;Success message #2&lt;/li&gt;                 &lt;li class=&quot;message default&quot;&gt;Success message #3&lt;/li&gt;             &lt;/ul&gt;         &lt;/div&gt;         &lt;div class=&quot;namespace namespace-warning message warning&quot;&gt;Warning message #1&lt;/div&gt;         &lt;div class=&quot;namespace namespace-error message error&quot;&gt;Error message #1&lt;/div&gt;     &lt;/div&gt;</p></p>
	<ul class="tags">
				<li><span class="field">return:</span> HTML of output messages</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			flashMessages
		</span>
					([<span class="var-type"></span>&nbsp;<span class="var-name">$containerAttributes</span> = <span class="var-default">array()</span>], [<span class="var-type">Zend_Translate</span>&nbsp;<span class="var-name">$translator</span> = <span class="var-default">null</span>], [<span class="var-type">array</span>&nbsp;<span class="var-name">$namespaces</span> = <span class="var-default">array('default', 'warning', 'error')</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$containerAttributes</span>			</li>
					<li>
				<span class="var-type">Zend_Translate</span>
				<span class="var-name">$translator</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$namespaces</span>			</li>
				</ul>
		
			
	</div>
<a name="method_translate" id="_translate"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">_translate</span> (line <span class="line-number">148</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Translates a string with the specified translator</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			_translate
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$string</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$string</span>			</li>
				</ul>
		
			
	</div>
						
		</div>
	</div>


	<p class="notes" id="credit">
		Documentation generated on Thu, 15 Sep 2011 15:50:22 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
	</p>
	</div></body>
</html>